e8184bbfc8b248c394339ae7d9087f3bfbd4ab6a,src/test/java/org/gedcomx/conversion/gedcom/dq55/PersonsNameTest.java,PersonsNameTest,testToPerson4,#,99

Before Change


    org.gedcomx.conclusion.Person person = result.getPersons().get(0);
    assertNotNull(person.getNames());
    assertEquals(person.getNames().size(), 1);
    NameForm nameForm = person.getNames().get(0).getPrimaryForm();
    assertEquals(nameForm.getFullText(), "John Johnson");
    checkNamePartEquals(nameForm, "John", NamePartType.Given);
    checkNamePartEquals(nameForm, "Johnson", NamePartType.Surname);

After Change


    org.gedcomx.conclusion.Person person = result.getPersons().get(0);
    assertNotNull(person.getNames());
    assertEquals(person.getNames().size(), 1);
    NameForm nameForm = person.getNames().get(0).getNameForms().get(0);
    assertEquals(nameForm.getFullText(), "John Johnson");
    checkNamePartEquals(nameForm, "John", NamePartType.Given);
    checkNamePartEquals(nameForm, "Johnson", NamePartType.Surname);